puts 33333
module Piston
  module Core
    class FileView
      def initialize(pane)
        @pane = pane
      end

      def add(view)
        view.closed do |sender, args|
          @pane.children.remove view
        end

        @pane.children.add view
      end

    end
  end
end